#include <cstdio>
#include <algorithm>
#include <vector>

using namespace std;

int main( )
{
    int t, n, i;
    vector<int> a;
    while ( scanf("%d", &n) != EOF )
    {
        a.clear( );
        for ( i = 0; i < n; i++ )
        {
            scanf("%d", &t);
            a.push_back( t );
        }
        sort( a.begin( ), a.end( ) );
        printf("%d\n", a[ n / 2 ]);
    }
    return 0;
}
